import java.util.Scanner;

public class CustomEcveption {


    public static void main(String[] args) throws CheckException {
        String num = "13346";
        System.out.println("请输入用户名密码");
        Scanner scanner = new Scanner(System.in);
        String tem = String.valueOf(scanner.nextInt());

        try{
            if (num.equals(tem)){
                System.out.println("密码输入正确");
            }else {
                throw new CheckException();
            }

        }catch (CheckException e){
            System.out.println("捕获到异常，密码输入错误");
        }
    }
}

